package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.ProjectListModel

/**
 * @auth: njb
 * @date: 2021/12/20 11:40
 * @desc: 描述
 */
class ProjectListRepository :BaseRepository(){
    val mProjectListRepository by lazy {
        RetrofitClient.service
    }

    suspend fun projectList(page:Int,cid:Int):ApiResponse<ProjectListModel>{
        return executeHttp {
            mProjectListRepository.projectList(page,cid)
        }
    }
}
